package Entity;

public class Products {
    // 产品名称
    private String name;
    // 产品唯一标识
    private int id;
    // 产品类别
    private String category;
    // 产品组标识符
    private int groupId;
    // 产品库存数量
    private int stock;
    // 产品位置
    private int x;
    private int y;
    private InboundCounter counter;
    public Products(String name, int id, String category, int groupId, int stock, int x, int y,InboundCounter counter){
        this.name = name;
        this.id = id;
        this.category = category;
        this.groupId = groupId;
        this.stock = stock;
        this.x = x;
        this.y = y;
        this.counter=counter;
    }

    public Products(){}

    public int getX() {
        return x;
    }

    public String getName() {
        return name;
    }

    public int getId() {
        return id;
    }

    public String getCategory() {
        return category;
    }

    public int getGroupId() {
        return groupId;
    }

    public int getStock() {
        return stock;
    }

    public int getY() {
        return y;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    @Override
    public String toString() {
        return "Products{" +
                "name='" + name + '\'' +
                ", id=" + id +
                ", category='" + category + '\'' +
                ", groupId=" + groupId +
                ", stock=" + stock +
                ", x=" + x +
                ", y=" + y +
                '}';
    }

    public InboundCounter getCounter() {
        return counter;
    }
}
